<!DOCTYPE html>
<html>

	<head>

		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<title>会员列表</title>
		<meta name="keywords" content="">
		<meta name="description" content="">

		<link rel="shortcut icon" href="favicon.ico">
		<link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
		<link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
		<link href="css/plugins/footable/footable.core.css" rel="stylesheet">

		<link href="css/animate.css" rel="stylesheet">
		<link href="css/style.css?v=4.1.0" rel="stylesheet">
		<link rel="stylesheet" href="css/page.css" />
		<!--alert css-->
       <link rel="stylesheet" type="text/css" href="css/sweetalert.css"/>
		<link href="css/plugins/summernote/summernote.css" rel="stylesheet">
		<!-- 全局js -->
		<script src="js/jquery.min.js?v=2.1.4"></script>
		<script src="js/bootstrap.min.js?v=3.3.6"></script>
		<script src="js/plugins/footable/footable.all.min.js"></script>
        <!--alert提示款-->
       <script type="text/javascript" src="js/sweetalert.min.js"></script>
		<!-- 分页js -->
		<script type="text/javascript" src="js/jquery.page.js"></script>

		<!-- 自定义js -->
		<script src="js/content.js?v=1.0.0"></script>
		<!--<script>
			$(document).ready(function() {

				$('.footable').footable();
				$('.footable2').footable();

			});
		</script>-->
		
		<script src="js/core.js"></script>
		<script src="js/user_list.js"></script>
		
		
		<script src="js/plugins/summernote/summernote.min.js"></script>
		<script src="js/plugins/summernote/summernote-zh-CN.js"></script>
		<script src="js/demo/summernote-demo.js"></script>
		
		
	</head>

	<body class="gray-bg">

		<div class="wrapper wrapper-content animated fadeInRight">
			<div class="row">
				<div class="col-sm-12">
					<div class="ibox float-e-margins">
						<div class="ibox-title">
							<h5>会员列表</h5>
						</div>
						<div class="ibox-content">

							<!-- 顶部工具栏按钮 -->
							<div class="builder-toolbar">
								<div class="row">
									<!-- 工具栏按钮 -->

									<!-- 搜索框 -->
								</div>
							</div>

							<div class="row">

								<!-- 多条件搜索 -->
								<form class="form form-inline search-form-items" method="get" action="">
									<style>
										.form-inline .form-group {
											margin-right: 12px;
											margin-bottom: 15px;
										}
										
										.form-inline .btn {
											margin-bottom: 15px;
										}
										
										.form-group .right {
											display: inline-block;
										}
										
										@media (max-width: 768px) {
											.form-group .left {
												width: 25%;
											}
											.form-group .right {
												width: 70%;
											}
											.search-form-items .search-btn {
												width: 100%;
											}
										}
									</style>
									<div class="form-group item_create_time " style="padding-top: 10px;">
									<label class="left control-label"> <span>注册时间：</span> </label>
									<div class="right">
										<div class="input-group">
											<div class="input-group-addon"><i class="fa fa-calendar"></i></div>
											<input type="text" id="applyTime" name="applyTime" class="form-control input dateranger" value="" placeholder="评估时间">
										</div>
										<link rel="stylesheet" href="lingyun/daterangepicker.css">
										<script src="lingyun/moment.min.js"></script>
										<script src="lingyun/daterangepicker.js"></script>
										<script type="text/javascript">
											$(function() {
												// 初始化日期范围插件
												$('#applyTime').daterangepicker({
													"showDropdowns": true,
													"autoApply": false,
													// "dateLimit": {
													//     "days": 365 * 100
													// },
													"linkedCalendars": false,
													"opens": 'right',
													"ranges": {
														"一周内": [
															moment().subtract(6, 'days'),
															moment()
														],
														"一月内": [
															moment().subtract(29, 'days'),
															moment()
														],
														"本月内": [
															moment().startOf('month'),
															moment().endOf('month')
														],
														"上个月": [
															moment().subtract(1, 'month').startOf('month'),
															moment().subtract(1, 'month').endOf('month')
														]
													},
													autoUpdateInput: false,
													locale: {
														format: 'YYYY-MM-DD',
														separator: ' - ',
														applyLabel: '确定',
														cancelLabel: '取消',
														fromLabel: '从',
														toLabel: '到',
														customRangeLabel: '日期范围',
														daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
														monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
														firstDay: 1
													},
													"minDate": "YYYY-MM-DD",
													"maxDate": "YYYY-MM-DD"
												}, function(start, end, label) {
													console.log("New date range selected: " + start.format('YYYY-MM-DD') + ' to ' + end.format('YYYY-MM-DD') + " (predefined range: " + label + ")");
												});

												$('#applyTime').on('apply.daterangepicker', function(ev, picker) {
													$(this).val(picker.startDate.format('YYYY-MM-DD') + '~' + picker.endDate.format('YYYY-MM-DD'));
												});

												$('#applyTime').on('cancel.daterangepicker', function(ev, picker) {
													$(this).val('');
												});
											})
										</script>
									</div>

									<!--<div class="input-group search-form" ">
										<span class="input-group-btn" style="padding-top: 7px;"><a class="btn btn-default search-btn" href="#applyTime" onclick="searchList();"><i class="fa fa-search"></i></a></span>
									</div>-->
								</div>	
								<div class="form-group item_status " style="padding-top: 10px; >
									<label class="left control-label"> <span>状态：</span> </label>
									<div class="right">
										<select  id="authStatus" name="auth_status" class="form-control lyui-select select" style="font-size: 13px">
											<option value=''>全部：</option>
											<option value="1">正常</option>
											<option value="2">禁用</option>
										</select>
									</div>
								</div>
								<div class="form-group item_status " style="padding-top: 10px; >
									<label class="left control-label"> <span>是否开通白条：</span> </label>
									<div class="right">
										<select  id="whitebarStatus" name="auth_status" class="form-control lyui-select select" style="font-size: 13px">
											<option value=''>全部：</option>
											<option value="1">开通</option>
											<option value="0">未开通</option>
										</select>
									</div>
								</div>
								<div class="input-group search-form">
									<input type="text"  id="param" class="search-input form-control"  placeholder="电话">
									<span class="input-group-btn"><a class="btn btn-default search-btn"  href="#" onclick="searchList();"><i class="fa fa-search"></i></a></span>
								</div>
								<div class="input-group " style="padding-top: 12px; padding-left: 20px;">
									<button type="button" id="toSearch" class="btn btn-sm btn-primary" style="margin-left:20px ;" onclick="excal()">导出</button>
								</div>
							</form>
						</div>

							<table class="table table-stripped toggle-arrow-tiny" style="font-size: 12px;  border-spacing:5px;  " data-page-size="8">
								<thead>
									<tr>
										<th>用户ID</th>
										<th>真实姓名</th>
										<th>昵称</th>
										<th>手机号码</th>
										<th>渠道商</th>
										<th>白条额度</th>
										<th>余额</th>
										<th>创建时间</th>
										<th>用户状态</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody id="thislist">
								</tbody>
								<tbody>
									<tr>
										<td colspan="8">
											<div id="pager"></div>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
    <!-- 添加-弹窗 -->
    <div class="modal inmodal" id="lahei" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">&times;</span>
                        <span class="sr-only">关闭</span>
                    </button>
                    <h4 class="modal-title" id="this_title">拉黑原因</h4>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label>拉黑原因</label>
                        <textarea id="defriendReason"  placeholder="请输入拉黑原因" class="form-control"></textarea>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" onclick="save()">保存</button>
                </div>
            </div>
        </div>
    </div>
    
    
    <!-- 审核失败-弹窗 -->
		<div class="modal inmodal" id="refuse" tabindex="-1" role="dialog" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content animated bounceInRight">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">&times;</span>
                        <span class="sr-only">关闭</span>
                    </button>
						<h4 class="modal-title" id="this_title1">拒绝原因</h4>
					</div>
					<div class="modal-body">
						<div class="form-group">
							<label>内容</label>
							<div class="form-group">
								<div class="summernote" id="refuseContent"></div>
							</div>

						</div>
					</div> 
					<div class="modal-footer">
						<button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
						<!--<button id="orderId" type="button" class="btn btn-primary" data-dismiss="modal" onclick="updateRemark(this.name)">提交</button>-->
					</div>
				</div>
			</div>
		</div>
    
    
    
	</body>

</html>